<?php

	namespace org\tekuna\demo\weblog\manager;
	
	
	use org\tekuna\demo\weblog\model\Article;

	class CommentManager extends AbstractEntityManager {
		
		const
			ENTITY_CLASS = 'org\\tekuna\\demo\\weblog\\model\\Comment',
			TABLE_NAME = 'comments';

		
		public function findCommentsForArticle(Article $objArticle) {
			
			return $this -> findWhere('articleId', $objArticle -> id);
		}
	}
